package cn.com.surker.enums;

/**
 * 状态枚举
 *
 */
public enum StateEnum implements IDescription {

    ENABLED(0,"启用"), DISABLED(1,"禁用"), DELETED(2,"删除");

    private final String description;

    private final Integer code;

    StateEnum(Integer code, String description) {
        this.description = description;
        this.code = code;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public Integer getCode() {return code;}
}
